/**
 * Author:yuiop
 * Date:2022/4/7 14:17
 */
package com.devops.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.devops.admin.mapper.DOSRoleUserRelationMapper;
import com.devops.admin.model.DOSRoleUserRelation;
import com.devops.admin.po.DOSRolePo;
import com.devops.admin.service.DOSRoleUserRelationService;
import com.devops.shiro.vm.BaseUserVM;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DOSRoleUserRelationServiceImpl extends ServiceImpl<DOSRoleUserRelationMapper, DOSRoleUserRelation> implements DOSRoleUserRelationService {
    @Override
    public List<BaseUserVM> getRoleByUserId(String userId) {
        return baseMapper.getRoleByUserId(userId);
    }

    @Override
    public List<DOSRolePo> getRoles(List<String> userIds) {
        return baseMapper.getRoles(userIds);
    }
}
